package com.jxcq.tensquare.spit.service;

import com.jxcq.tensquare.spit.pojo.Spit;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @author CalvinXCui
 * @date 2019- 10- 15 12:51
 */
public interface SpitService {

    List<Spit> findAll();

    Spit findById(String id);

    void save(Spit spit);

    void update(Spit spit);

    void deleteById(String id);

    public Page<Spit> findByParentid(String parentid, int page , int size);


    void thumbup(String spitId);
}
